import com.ssqdx.mapper.StudentMapper;
import com.ssqdx.pojo.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author asus
 * @date 2021/6/8 18:54:21
 * @description
 */
public class Mytest {
    @Test
    public void test(){
        ApplicationContext context = new ClassPathXmlApplicationContext("spring-dao.xml");
        StudentMapper studentMapper = context.getBean("studentMapper", StudentMapper.class);
        for (Student student : studentMapper.selectStudent()) {
            System.out.println(student);
        }
    }
}
